import { ref, h } from '../../lib/guide-coco-mini-vue.esm.js'


const prevChildren = "prevChildren 历史文本内容";
const nextChildren = "newChildren 新的文本内容";


export default {
    name: "ArrayToText",
    setup() {
        const isChange = ref(false);
        window.isChange = isChange;

        return {
            isChange
        }
    },
    render() {
        const self = this;

        return self.isChange === true ? h('div', {}, nextChildren) : h("div", {}, prevChildren);
    }
}